# 自定义线程类
import threading


class myThread(threading.Thread):
    def run(self, ) -> None:
        print(self._args)
        print("线程1正在运行.........")

t = myThread(args=(100, ))
t.start()



# 关于线程 传递的参数 方式2
class myThread2(threading.Thread):

    def __init__(self, counts):
        super().__init__()
        self.counts = counts

    def run(self, ) -> None:
        print(self.counts)
        print("线程2正在运行.........")

t2 = myThread2(200)
t2.start()
